import request from '@/utils/request'

/// //////////////////生成器操作//////////////////////////

// 获取所有表名
export const getTableListData = () => {
  return request({
    url: '/sys_generator/getTables',
    method: 'GET'
  })
}

// 获取某个表格所有列
export const getColumnsListData = params => {
  return request({
    url: '/sys_generator/getColumns',
    method: 'GET',
    params
  })
}

// 发送生成代码请求
export const createCodeAction = data => {
  return request({
    url: '/sys_generator/todoCode',
    method: 'POST',
    data
  })
}
